home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / munmap.man < prev    next >
Encoding:
Text File  |  1990-02-20  |  1.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MUNMAP                C Library Procedures                 MUNMAP
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      munmap - unmap part of the process's address space
  10.  
  11. SSYYNNOOPPSSIISS
  12.      NNOOTTEE:: tthhiiss mmaann ppaaggee iiss iinnaaccccuurraattee..
  13.      mmuunnmmaapp((aaddddrr,, lleenn))
  14.      ccaaddddrr__tt aaddddrr;;   //** ssttaarrttiinngg vviirrtt--aaddddrr **//
  15.      iinntt     lleenn;;    //** lleennggtthh ((bbyytteess)) ttoo uunnmmaapp **//
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      _M_u_n_m_a_p removes a mapping created by _m_m_a_p(2).  The _a_d_d_r and
  19.      _l_e_n arguments must be integral multiples of the system page
  20.      size, as defined by _g_e_t_p_a_g_e_s_i_z_e(2).
  21.  
  22.      After successful completion of _m_u_n_m_a_p, the address space
  23.      from _a_d_d_r through _a_d_d_r+_l_e_n-_1 does not exist and will result
  24.      in a segmentation fault (SIGSEGV) if referenced.
  25.  
  26. RREETTUURRNN VVAALLUUEE
  27.      Munmap returns zero when successful.  Otherwise it returns
  28.      -1 and places the error number in the global variable _e_r_r_n_o.
  29.  
  30. EERRRROORRSS
  31.      [EINVAL]       _A_d_d_r or _l_e_n is not a multiple of the system
  32.                     page size.
  33.  
  34.      [EINVAL]       The area defined by _a_d_d_r and _l_e_n overlaps the
  35.                     text or stack segment or a non-existent part
  36.                     of the address space.
  37.  
  38. SSEEEE AALLSSOO
  39.      mmap(2), vm_ctl(2), getpagesize(2)
  40.  
  41. NNOOTTEESS
  42.      The current implementation can unmap only data space.
  43.  
  44.      Any address space holes created by _m_u_n_m_a_p read as zeroes in
  45.      a core file.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. DYNIX                                                           1
  64.  
  65.  
  66.  
  67.